package com.ml.model;
import javax.persistence.*;
import java.io.Serializable;

/**
 * 和泛微公用的数据库  hrmdepartment 部门表
 * 部门实体类，该实体只做查询操作，不做更新和删除操作， 在servece中设置 @Transactional(readOnly=true)
 * */
@Entity
@Table(name = "hrmdepartment", schema = "")
public class HrmDepartMent implements Serializable {

    private Integer id;
    /**部门名称*/
    private String departmentname;
    /**上级部门ID*/
    private Integer supdepid;
    /**部门编号*/
    private String departmentcode;

    /**所属 分部id*/
    private Integer subcompanyid1;


    @Id
    @GeneratedValue(strategy= GenerationType.AUTO)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "DEPARTMENTNAME", nullable = true,insertable=false,updatable = false)
    public String getDepartmentname() {
        return departmentname;
    }

    public void setDepartmentname(String departmentname) {
        this.departmentname = departmentname;
    }

    @Column(name = "SUPDEPID", nullable = true,insertable=false,updatable = false)
    public Integer getSupdepid() {
        return supdepid;
    }

    public void setSupdepid(Integer supdepid) {
        this.supdepid = supdepid;
    }

    @Column(name = "DEPARTMENTCODE", nullable = true,insertable=false,updatable = false)
    public String getDepartmentcode() {
        return departmentcode;
    }

    public void setDepartmentcode(String departmentcode) {
        this.departmentcode = departmentcode;
    }

    @Column(name = "SUBCOMPANYID1", nullable = true,insertable=false,updatable = false)
    public Integer getSubcompanyid1() {
        return subcompanyid1;
    }

    public void setSubcompanyid1(Integer subcompanyid1) {
        this.subcompanyid1 = subcompanyid1;
    }
}
